// $codepro.audit.disable methodJavadoc, largeNumberOfParameters
/**
 * License under GNU's GPL 
 * Appointment.java 
 */


/**
 * Class represents an appointment
 * 
 * @author Team 9
 * @version 1.0
 */
public class Appointment {

	/**
	 * Overrides the toString() method to print the appropriate instance
	 * variables
	 * 
	 * @return String to be printed
	 */
	public String toString() {
		return this.mm + "/" + this.dd + "/" + this.yy + " " + this.hh + ":"
				+ this.min + this.ap + " " + this.doctor;

	}

	/**
	 * String variable for appointment month
	 */
	private String mm;

	/**
	 * String variable for appointment day
	 */
	private String dd;

	/**
	 * String variable for appointment year
	 */
	private String yy;

	/**
	 * String variable for appointment hour
	 */
	private String hh;

	/**
	 * String variable for appointment minute
	 */
	private String min;
	
	/**
	 * String variable for appointment am/pm
	 */
	private String ap;

	/**
	 * String variable for attending doctor for the appointment
	 */
	private String doctor;

	/**
	 * Constructor for the class
	 * 
	 * @param doctor
	 *            value for doctor
	 * @param mm month for appointment
	 * @param dd date for appointment
	 * @param yy year for appointment
	 * @param hh hour for appointment
	 * @param min minute for appointment
	 * @param ap am/pm minute for appointment
	 * @param doctor doctor for appointment
	 */
	public Appointment(String mm, String dd, String yy, String hh, String min,
			String ap, String doctor) {
		this.mm = mm;
		this.dd = dd;
		this.yy = yy;
		this.hh = hh;
		this.min = min;
		this.ap = ap;
		this.doctor = doctor;
	}

	/**
	 * Setter for date
	 * 
	 * @param date
	 *            value for date
	 */
	public void setDate(String mm, String dd, String yy) {
		this.mm = mm;
		this.yy = yy;
		this.dd = dd;
	}
	
	/**
	 * Getter for hours
	 * @return hours
	 */
	public String getHh() {
		return hh;
	}
	
	/**
	 * Setter for hours
	 * @param hh hours
	 */

	public void setHh(String hh) {
		this.hh = hh;
	}
	
	/**
	 * Getter for minutes
	 * @return minutes
	 */
	public String getMin() {
		return min;
	}
	
	/**
	 * Setter for minutes
	 * @param min minutes
	 */
	public void setMin(String min) {
		this.min = min;
	}
	
	/**
	 * Getter for appointment
	 * 
	 * @return appointment
	 */

	public String getAp() {
		return ap;
	}
	
	/**
	 * Setter for appointment
	 * 
	 * @return appointment
	 */
	public void setAp(String ap) {
		this.ap = ap;
	}

	/**
	 * Getter for month
	 * 
	 * @return month
	 */
	public String getMm() {
		return mm;
	}
	
	/**
	 * Getter for day
	 * 
	 * @return day
	 */
	public String getDd() {
		return dd;
	}
	
	/**
	 * Getter for year
	 * 
	 * @return year
	 */
	public String getYy() {
		return yy;
	}

	/**
	 * Setter for time
	 * 
	 * @param time
	 *            value for time
	 */
	public void setTime(String hh, String min, String ap) {
		this.hh = hh;
		this.min = min;
		this.ap = ap;
	}

	/**
	 * Setter for doctor
	 * 
	 * @param doctor
	 *            value for doctor
	 */
	public void setDoctor(String doctor) {
		this.doctor = doctor;
	}

	/**
	 * Getter for doctor
	 * 
	 * @return doctor
	 */
	public String getDoctor() {
		return doctor;
	}
}
